@import '~antd/lib/style/themes/default.less';

@prefix-cls: ~'lotus-drawer-wrapper';

.@{prefix-cls} {
  .ant-drawer-body {
    height: 100%;
    min-height: 300px;
    padding: 0;
  }

  &__title {
    height: @layout-header-height;
    margin: 0;
    color: rgba(0, 0, 0, 0.85);
    font-weight: 500;
    font-size: 16px;
    line-height: @layout-header-height;
  }

  &__header {
    position: relative;
    height: @layout-header-height;
    padding: 0 24px;
    color: rgba(0,0,0,0.65);
    line-height: @layout-header-height;
    background: @white;
    border-bottom: 1px solid #e8e8e8;
    border-radius: 4px 4px 0 0;

    .buttons {
      position: absolute;
      top: 0;
      right: 10px;
      z-index: 10;
    }

    button {
      display: inline-block;
      width: 30px;
      height: 30px;
      padding: 0;
      color: rgba(0, 0, 0, 0.45);
      font-weight: 700;
      font-size: 16px;
      font-style: normal;
      line-height: 56px;
      text-align: center;
      text-transform: none;
      text-decoration: none;
      background: transparent;
      border: 0;
      outline: 0;
      cursor: pointer;
      transition: color 0.3s;
      text-rendering: auto;
    }
  }

  &__body {
    padding: 16px 24px;
  }

  &__footer {;
    position: absolute;
    bottom: 0;
    width: 100%;
    height: @layout-header-height;
    padding: 0 24px;
    overflow: hidden;;
    line-height: @layout-header-height;
    background: #fff;
    border-top: 1px solid #efefef;

    button + button {
      margin-left: 10px;
    }
  }
}
